<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8" />
  <title>Create a custom raster type</title>
  <style>
    table, th, td {
      border: 1px solid black;
      border-collapse: collapse;
    }
    th, td {
      padding: 5px;
    }
    th {
      font-weight: bold;
    }
  </style>
</head>
<body>
  ## Create a custom raster type

  <div xmlns="http://www.w3.org/1999/xhtml">This sample shows how to implement a custom raster builder that can attach to an existing raster type to create a custom raster type. The custom builder that is implemented is called the Thumbnail Builder, and it uses the datasets generated by the raster type to generate a small thumbnail for each dataset. The generated thumbnail is added to the Mosaic Dataset catalog as a binary large object (BLOB) that a client can read.</div>
  <div xmlns="http://www.w3.org/1999/xhtml"> </div>
  <div xmlns="http://www.w3.org/1999/xhtml">This sample application creates a mosaic dataset in the user-specified location and adds data to it using the user-specified data source and the Raster Dataset raster type. The application attaches the Thumbnail Builder to the raster type and can optionally save the custom raster type generated in a .art file, which can then be used multiple times.</div>  

```
Language:              C#, VB
Subject:               Raster
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5
```

### Resources

* [ArcObjects .NET API Reference online](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm)  
* [Sample Data Download](../../releases)  
* [What's new](http://desktop.arcgis.com/en/arcobjects/latest/net/webframe.htm#91cabc68-2271-400a-8ff9-c7fb25108546.htm)  
* [Download the ArcObjects SDK for .Net from MyEsri.com](https://my.esri.com/)  

### Usage
#### Using the custom type  
1. Start Visual Studio and open the solution file.  
1. Open the TestThumbnailBuilder project.  
1. Edit the strings in the Specify input directory and dataset name region to specify the parameters that control where to create the mosaic dataset, where to add data, and so on.  
1. Compile and run the program. If the program succeeds, the console shows a Success message. If an error occurs, it shows on the console window.  
1. Load the created mosaic dataset into ArcMap. The Attribute table will contain a field called Thumbnail, which can be used by a client to view the thumbnails generated by the Thumbnail Builder.  

---------------------------------

#### Licensing  
<table><tr><th> Development licensing </th><th> Deployment licensing </th></tr>
<tr><td> ArcGIS Desktop Standard </td><td> ArcGIS Desktop Standard </td></tr>  
<tr><td> ArcGIS Desktop Advanced </td><td> ArcGIS Desktop Advanced </td></tr>  
<tr><td> Engine Developer Kit </td><td> Engine </td></tr>  
</table>
</body>
</html>